package org.xxpay.core.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StatisticsPayPassageExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    private Integer limit;

    private Integer offset;

    public StatisticsPayPassageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPayPassageIdIsNull() {
            addCriterion("PayPassageId is null");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdIsNotNull() {
            addCriterion("PayPassageId is not null");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdEqualTo(Integer value) {
            addCriterion("PayPassageId =", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdNotEqualTo(Integer value) {
            addCriterion("PayPassageId <>", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdGreaterThan(Integer value) {
            addCriterion("PayPassageId >", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PayPassageId >=", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdLessThan(Integer value) {
            addCriterion("PayPassageId <", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdLessThanOrEqualTo(Integer value) {
            addCriterion("PayPassageId <=", value, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdIn(List<Integer> values) {
            addCriterion("PayPassageId in", values, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdNotIn(List<Integer> values) {
            addCriterion("PayPassageId not in", values, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdBetween(Integer value1, Integer value2) {
            addCriterion("PayPassageId between", value1, value2, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PayPassageId not between", value1, value2, "payPassageId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdIsNull() {
            addCriterion("PayPassageAccountId is null");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdIsNotNull() {
            addCriterion("PayPassageAccountId is not null");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdEqualTo(Integer value) {
            addCriterion("PayPassageAccountId =", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdNotEqualTo(Integer value) {
            addCriterion("PayPassageAccountId <>", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdGreaterThan(Integer value) {
            addCriterion("PayPassageAccountId >", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PayPassageAccountId >=", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdLessThan(Integer value) {
            addCriterion("PayPassageAccountId <", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdLessThanOrEqualTo(Integer value) {
            addCriterion("PayPassageAccountId <=", value, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdIn(List<Integer> values) {
            addCriterion("PayPassageAccountId in", values, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdNotIn(List<Integer> values) {
            addCriterion("PayPassageAccountId not in", values, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdBetween(Integer value1, Integer value2) {
            addCriterion("PayPassageAccountId between", value1, value2, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andPayPassageAccountIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PayPassageAccountId not between", value1, value2, "payPassageAccountId");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIsNull() {
            addCriterion("StatisticsDate is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIsNotNull() {
            addCriterion("StatisticsDate is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateEqualTo(Date value) {
            addCriterionForJDBCDate("StatisticsDate =", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("StatisticsDate <>", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateGreaterThan(Date value) {
            addCriterionForJDBCDate("StatisticsDate >", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("StatisticsDate >=", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateLessThan(Date value) {
            addCriterionForJDBCDate("StatisticsDate <", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("StatisticsDate <=", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIn(List<Date> values) {
            addCriterionForJDBCDate("StatisticsDate in", values, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("StatisticsDate not in", values, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("StatisticsDate between", value1, value2, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("StatisticsDate not between", value1, value2, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountIsNull() {
            addCriterion("PayTotalCount is null");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountIsNotNull() {
            addCriterion("PayTotalCount is not null");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountEqualTo(Integer value) {
            addCriterion("PayTotalCount =", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountNotEqualTo(Integer value) {
            addCriterion("PayTotalCount <>", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountGreaterThan(Integer value) {
            addCriterion("PayTotalCount >", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("PayTotalCount >=", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountLessThan(Integer value) {
            addCriterion("PayTotalCount <", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountLessThanOrEqualTo(Integer value) {
            addCriterion("PayTotalCount <=", value, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountIn(List<Integer> values) {
            addCriterion("PayTotalCount in", values, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountNotIn(List<Integer> values) {
            addCriterion("PayTotalCount not in", values, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountBetween(Integer value1, Integer value2) {
            addCriterion("PayTotalCount between", value1, value2, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalCountNotBetween(Integer value1, Integer value2) {
            addCriterion("PayTotalCount not between", value1, value2, "payTotalCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountIsNull() {
            addCriterion("PaySuccessCount is null");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountIsNotNull() {
            addCriterion("PaySuccessCount is not null");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountEqualTo(Integer value) {
            addCriterion("PaySuccessCount =", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountNotEqualTo(Integer value) {
            addCriterion("PaySuccessCount <>", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountGreaterThan(Integer value) {
            addCriterion("PaySuccessCount >", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("PaySuccessCount >=", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountLessThan(Integer value) {
            addCriterion("PaySuccessCount <", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountLessThanOrEqualTo(Integer value) {
            addCriterion("PaySuccessCount <=", value, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountIn(List<Integer> values) {
            addCriterion("PaySuccessCount in", values, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountNotIn(List<Integer> values) {
            addCriterion("PaySuccessCount not in", values, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountBetween(Integer value1, Integer value2) {
            addCriterion("PaySuccessCount between", value1, value2, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessCountNotBetween(Integer value1, Integer value2) {
            addCriterion("PaySuccessCount not between", value1, value2, "paySuccessCount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountIsNull() {
            addCriterion("PayTotalAmount is null");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountIsNotNull() {
            addCriterion("PayTotalAmount is not null");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountEqualTo(Long value) {
            addCriterion("PayTotalAmount =", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountNotEqualTo(Long value) {
            addCriterion("PayTotalAmount <>", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountGreaterThan(Long value) {
            addCriterion("PayTotalAmount >", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("PayTotalAmount >=", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountLessThan(Long value) {
            addCriterion("PayTotalAmount <", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountLessThanOrEqualTo(Long value) {
            addCriterion("PayTotalAmount <=", value, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountIn(List<Long> values) {
            addCriterion("PayTotalAmount in", values, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountNotIn(List<Long> values) {
            addCriterion("PayTotalAmount not in", values, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountBetween(Long value1, Long value2) {
            addCriterion("PayTotalAmount between", value1, value2, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPayTotalAmountNotBetween(Long value1, Long value2) {
            addCriterion("PayTotalAmount not between", value1, value2, "payTotalAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountIsNull() {
            addCriterion("PaySuccessAmount is null");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountIsNotNull() {
            addCriterion("PaySuccessAmount is not null");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountEqualTo(Long value) {
            addCriterion("PaySuccessAmount =", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountNotEqualTo(Long value) {
            addCriterion("PaySuccessAmount <>", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountGreaterThan(Long value) {
            addCriterion("PaySuccessAmount >", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("PaySuccessAmount >=", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountLessThan(Long value) {
            addCriterion("PaySuccessAmount <", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountLessThanOrEqualTo(Long value) {
            addCriterion("PaySuccessAmount <=", value, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountIn(List<Long> values) {
            addCriterion("PaySuccessAmount in", values, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountNotIn(List<Long> values) {
            addCriterion("PaySuccessAmount not in", values, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountBetween(Long value1, Long value2) {
            addCriterion("PaySuccessAmount between", value1, value2, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andPaySuccessAmountNotBetween(Long value1, Long value2) {
            addCriterion("PaySuccessAmount not between", value1, value2, "paySuccessAmount");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostIsNull() {
            addCriterion("TotalChannelCost is null");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostIsNotNull() {
            addCriterion("TotalChannelCost is not null");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostEqualTo(Long value) {
            addCriterion("TotalChannelCost =", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostNotEqualTo(Long value) {
            addCriterion("TotalChannelCost <>", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostGreaterThan(Long value) {
            addCriterion("TotalChannelCost >", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostGreaterThanOrEqualTo(Long value) {
            addCriterion("TotalChannelCost >=", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostLessThan(Long value) {
            addCriterion("TotalChannelCost <", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostLessThanOrEqualTo(Long value) {
            addCriterion("TotalChannelCost <=", value, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostIn(List<Long> values) {
            addCriterion("TotalChannelCost in", values, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostNotIn(List<Long> values) {
            addCriterion("TotalChannelCost not in", values, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostBetween(Long value1, Long value2) {
            addCriterion("TotalChannelCost between", value1, value2, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andTotalChannelCostNotBetween(Long value1, Long value2) {
            addCriterion("TotalChannelCost not between", value1, value2, "totalChannelCost");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}